class ResHandler {
  succRes({data, code, message}) {
    return {
      data: data || null,
      code: code || 200,
      message: message || 'successs'
    }
  }

  errRes({code, message}) {
    return {
      code: code || 500,
      message: message || 'Server Error'
    }
  }
}

module.exports = ResHandler